/*
* ===================================================
*
*       Filename:  worker.hh
*
*       Version:  1.0
*       Created:  12/09/2011 05:11:14 PM
*       Compiler:  gcc
*
*       Author:  durand_y, <yoan.durand@gmail.com>
*
* ===================================================
*/

#ifndef WORKER_HH
# define WORKER_HH

# include "ant.hh"

class Worker : public Ant
{
public:
	Worker (int x, int y,bool is_queen);
	virtual ~Worker ();
	virtual void action () = 0;
	virtual void print () = 0;
	virtual void drop_phero () = 0;
	virtual void move (int x, int y) = 0;
	//getter
	bool get_ressource ()
	{
		return (this->resource_);
	}

	int get_life ()
	{
		return (this->life_);
	}

	bool get_near_r ()
	{
		return (this->near_r_);
	}

	bool get_near_q ()
	{
		return (this->near_q_);
	}

	//setter
	void set_ressource (bool b)
	{
		resource_ = b;
	}

	void set_near_r (bool b)
	{
		near_r_ = b;
	}

	void set_near_q (bool b)
	{
		near_q_ = b;
	}

protected:
	bool resource_;
	int life_;
	bool near_r_;
	bool near_q_;
};
#endif /* !WORKER_HH */
